import request from '../util/request'

export function login(username, password) {
    return request({
        url: '/auth/login',
        method: 'POST',
        data: {
            username,
            password,
        }
    })
}

export function info() {
    return request({
        url: '/auth/info',
        mathod: 'GET'
    })
}